$bg:yellow;
div{
    background: $bg;
}
span{
    color: red;
    width: calc(100% - 22px);
}